import request from '@/utils/request';

// 登录
interface FetchLoginProps {
  email: string;
  password: string;
}
export const fetchLogin = (data: FetchLoginProps) => {
  return request('/auth/login', {
    method: 'POST',
    data,
  });
};

// 登出
export const fetchLogout = () => {
  return request('/auth/logout', {
    method: 'POST',
  });
};
